package com.ljf.finance.web;

import com.ljf.common.exception.ServiceException;
import com.ljf.common.result.ResultModel;
import com.ljf.common.web.BasisController;
import com.ljf.finance.dto.command.FinanceDatVirtualAccountCommand;
import com.ljf.finance.dto.query.FinanceDatVirtualAccountQuery;
import com.ljf.finance.service.IFinanceDatVirtualAccountService;
import com.ljf.finance.vo.FinanceDatVirtualAccountVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 虚拟账户定义  控制器
 *
 * @author LJF
 * @since 2024-02-09
 */
@RestController
@RequestMapping("/finance/dat/virtual_account")
@Api(value = "虚拟账户定义接口", tags = "虚拟账户定义接口")
public class FinanceDatVirtualAccountController extends BasisController<IFinanceDatVirtualAccountService, FinanceDatVirtualAccountQuery, FinanceDatVirtualAccountVO, FinanceDatVirtualAccountCommand> {

    @GetMapping("/common_used")
    @ApiOperation(value = "常用账户查询接口")
    public ResultModel queryCommonUsed(FinanceDatVirtualAccountQuery query) throws ServiceException {
        return service.queryCommonUsed(query);
    }

}